from django.conf.urls import patterns, url

urlpatterns = patterns('market.views',
        url(r'^$', 'index'), 
        url(r'^goods/(?P<goods_id>\d+)/$', 'goods_detail'), 
        url(r'^latest/(?P<page_num>\d+)/$', 'latest_goods'), 
        url(r'^list/(?P<type_id>\d+)/(?P<page_num>\d+)/$', 'goods_list'), 
        url(r'^add/$', 'add_goods'), 
        url(r'^comment/(?P<goods_id>\d+)/$', 'comment'), 
        url(r'^upload/$', 'upload_image' ), 
)


